﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Audio;

namespace DELVE_GAME.ViewStructure.GameActions
{
    class EndTurnGameAction : GameAction
    {
        View game;
        NextStageGameAction next;
        SoundEffectInstance sound;
        public EndTurnGameAction(View game, NextStageGameAction next, SoundEffectInstance sound)
        {
            this.game = game;
            this.next = next;
            this.sound = sound;
        }

        public override void doAction()
        {
            next.doAction();
            this.game.getGame().endTurn();
            sound.Play();
        }
    }
}
